<template>
<span></span>
</template>

<script>
export default {
	name: 'bh-table-column',
	inject: ['table'],//就是父级 select 的 this
	props: {
		prop: {
			type: String,
			default: '',
		},
		label: {
			type: String,
			default: '',
		},
		width: {
			type: String,
			default: '',
		},
	},
	data() {
		return {
			item2: true,
		}
	},
	methods: {
		close() {
			this.visible = false;
			this.$emit('close');
		},
	},
	computed: {
		typeClass() {
			return `bh-alert-${ this.type }`;
		},
	},
	created() {
		console.log('bh-table-column')
		this.table && this.table.columns.push(this);
		this.table && this.table.columnsCount++;
	}
}
</script>
